﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GRMS;

public partial class StartPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Forward_Room(object sender, EventArgs e)
    {
        if (RoomSelector.Text != "")
        {
            Context.Session["GameSession_" + RoomSelector.Text] = null;
            Context.Session["GSMSState_" + RoomSelector.Text] = false;
            Response.Redirect("Chatroom.aspx?roomName=" + RoomSelector.Text);
        }
        else
        {
            Context.Session["GSMSState_Home"] = false;
            Context.Session["GameSession_Home"] = null;
            Response.Redirect("Chatroom.aspx?roomName=Home");
        }
    }
}